package com.ruoyi.ebike.utils;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class PointUtils {
    private static final List<String> points = new ArrayList<>();

    static {
        points.add(new String ("POINT(114.3434525 30.51338307)"));
        points.add(new String ("POINT(114.3516591 30.52212426)"));
        points.add(new String ("POINT(114.3047481 30.54295522)"));
        points.add(new String ("POINT(114.2422526 30.55339402)"));
        points.add(new String ("POINT(114.2856592 30.49054144)"));
        points.add(new String ("POINT(114.3380875 30.48706158)"));
    }

    public static String getRandomPoint() {
        Random random = new Random();
        int index = random.nextInt(points.size());
        return points.get(index);
    }

}
